import { getUserInfoUrl } from "@/command/apiTool";
import { useDetail } from "@/hooks";
import { useRoute } from "vue-router";
export const useRequest = () => {
  const route = useRoute();
  const [detail, detailControl] = useDetail(
    getUserInfoUrl(
      {
        dh: "/api/help/center/detail",
        xh: "/api/help/center/detail",
      },
      { id: route.query.id || "" }
    ),
    {
      id: "",
      content: "",
      title: "",
    }
  );

  return {
    detail,
  };
};
